package com.example.text2sql;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.example.text2sql.agent.Text2Sql;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Text2SqlApplication {

    public static void main(String[] args) throws NoApiKeyException, InputRequiredException {

        Text2Sql text2Sql = new Text2Sql();

        String content = text2Sql.call("AI: 我们系统中有多少企业数据");

        System.err.println(content);
    }

}
